
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@page import="com.tss.util.*"%>
<%@page import="com.store.*"%>

<%@page import="com.jedi.*"%>
<%@include file="../global_var.jsp"%>
<%@include file="../check_login.jsp"%>

<%


String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'contract_search.jsp' starting page</title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    
   <link href="style/main.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/common.js"></script>
<script language="javascript">
function chk_submit() {
	var oForm = document.operatorForm;
	oForm.action = "outcontract_mgt/outcontract_list.jsp";
	return true;
}
</script>
</head>
<body 
	leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td >
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			
			<tr>
				<td height="100" align="center" valign="top"
					style="padding-top:20px;padding-bottom:10px;">
					<form name="operatorForm" method="post"
						onsubmit="return chk_submit();">
				<table width="80%" border="0" cellpadding="3" cellspacing="1"
					bgcolor="#FFFFFF">
					
					
					<tr>
						<td height="24" align="right" bgcolor="#858585"><font
							color="#FFFFFF">所在区域：</font></td>
						<td bgcolor="#EDEDF0">
						
                  <select name="area_id">
                   <option value="">=全部=</option>
                    <%for(int i=0;i<area_item_info.length;i++){%>
                    <option value="<%=area_item_info[i]%>"><%=area_item_info[i]%></option>
                    <%}%>
                  </select>
						</td>
					</tr>
					
					<tr>
						<td height="24" align="right" bgcolor="#858585"><font
							color="#FFFFFF">合同编号：</font></td>
						<td bgcolor="#EDEDF0"><input name="conid" type="text"
							value="" size="30" maxlength="50" class="inputbox"></td>
					</tr>
					
					
					<tr>
						<td height="24" align="right" bgcolor="#858585"><font
							color="#FFFFFF">客户名称：</font></td>
						<td bgcolor="#EDEDF0"><input name="busname" type="text"
							value="" size="50" maxlength="100" class="inputbox"></td>
					</tr>
					<tr>
						<td height="24" align="right" bgcolor="#858585"><font
							color="#FFFFFF">销售人员姓名：</font></td>
						<td bgcolor="#EDEDF0"><SELECT name="saler">
													<OPTION value="">
														 ==请选择==
													</option>
													 <%
					UserMgr userMgr = new UserMgr();
					String saler="saler";
                 List   list =userMgr .getUsersGroupbyroleid(saler);
                    if (list != null && list.size() > 0) {
                    	for(int i=0;i<list.size();i++) {
                    		User item = (User)list.get(i);
                    %>
                    <option value="<%=item.getId()%>"  ><%=item.getUserName()%></option>
                    <%
                    }
                    }
                    %>
												</SELECT>
							</td>
					</tr>
              
              <tr>
						<td height="24" align="right" bgcolor="#858585">
						<font
							color="#FFFFFF">登记时间：</font></td>
						<td bgcolor="#EDEDF0">
						 			 从 
                  <span id="htmlBeginTime"> 
                  	<input type="text" name="begin_date" size="15" maxlength="15"  readonly> 
                  </span> <a href="javascript:void(0)" onclick="gfPop.fPopCalendar(document.forms[0].begin_date);return false;"
								HIDEFOCUS>&nbsp;<img name="popcal" align="Bottom" src="calendar/calbtn.gif" width="18" height="18"
									border="0" alt=""></a>
 							至 	

                   <span id="htmlEndTime">
                   	<input type="text" name="end_date" size="" maxlength=""  readonly>
                   </span>
                   <a href="javascript:void(0)" onclick="gfPop.fPopCalendar(document.forms[0].end_date);return false;"
								HIDEFOCUS>&nbsp;<img name="popcal" align="Bottom" src="calendar/calbtn.gif" width="18" height="18"
									border="0" alt=""></a>
					</td>
					</tr>
					<tr>
						<td height="24" align="right" bgcolor="#EDEDF0">&nbsp;</td>
						<td bgcolor="#EDEDF0"><input type="submit" name="submit" value="搜 索" class="inputButton"> 
							<input type="reset" name="reset" value="重 写" class="inputButton"> 
							<input type="hidden" name="cmd" value="">
						</td>
					</tr>
					
				</table>
				</form>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>

<iframe width="168" height="190" name="gToday:normal:agenda.js" id="gToday:normal:agenda.js"
			src="calendar/ipopeng.htm" scrolling="no" frameborder="0" style="BORDER-RIGHT:2px ridge; BORDER-TOP:2px ridge; Z-INDEX:999; LEFT:-500px; VISIBILITY:visible; BORDER-LEFT:2px ridge; BORDER-BOTTOM:2px ridge; POSITION:absolute; TOP:0px">
		</iframe>
</body>
</html>
